import { auth } from './directive/index';
import { createApp } from 'vue'
import App from './App.vue'

import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import 'element-plus/dist/index.css'
import './styles/index.scss'

import { createPinia } from 'pinia'
import router from './router'
import './permission'//引入权限控制文件

const app = createApp(App)

// app.use(ElementPlus)
//国际化处理
app.use(ElementPlus, {
    locale: zhCn,
  })
app.use(createPinia())
app.use(router)
//按钮权限
app.directive('auth-btn',auth)

app.mount('#app')